home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / rdflib / sparql / bison / Bindings.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.4 KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from rdflib import URIRef, Namespace
  5.  
  6. class PrefixDeclaration(object):
  7.     """
  8.     PrefixDecl ::= 'PREFIX' QNAME_NS Q_IRI_REF
  9.     See: http://www.w3.org/TR/rdf-sparql-query/#rPrefixDecl
  10.     """
  11.     
  12.     def __init__(self, qName, iriRef):
  13.         self.namespaceMapping = Namespace(iriRef)
  14.         self.qName = qName[:-1]
  15.         self.base = iriRef
  16.  
  17.     
  18.     def __repr__(self):
  19.         return '%s -> %s' % (self.base, self.qName[:-1])
  20.  
  21.  
  22.  
  23. class BaseDeclaration(URIRef):
  24.     """
  25.     BaseDecl ::= 'BASE' Q_IRI_REF
  26.     See: http://www.w3.org/TR/rdf-sparql-query/#rBaseDecl
  27.     """
  28.     pass
  29.  
  30.